/* ###################################### */
/* ###     Util Engine, by Kalith    ### */
/* ###################################### */
/*          EventReceiver source          */
/*                                        */
/*                                        */

#include "EventReceiver.h"
#include "EventManager.h"

using namespace std;

namespace Util
{
    const Str EventReceiver::CLASS_NAME = "EventReceiver";

    EventReceiver::EventReceiver()
    {
    }

    EventReceiver::~EventReceiver()
    {
        EventManager::GetSingleton()->UnregisterReceiver(this);
    }

    void EventReceiver::RegisterEvent( const Str& sEventName )
    {
        EventManager::GetSingleton()->RegisterEvent(this, sEventName);
    }

    void EventReceiver::UnregisterEvent( const Str& sEventName )
    {
        EventManager::GetSingleton()->UnregisterEvent(this, sEventName);
    }
}
